﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类WebLog
     ///</summary>
     public class WebLog
     {
         private int __ID=0 ;
         private string __JCLSH=string.Empty ;
         private string __JCXH=string.Empty ;
         private string __JCGWH=string.Empty ;
         private string __LogName=string.Empty ;
         private string __JYXM=string.Empty ;
         private string __AJLSH=string.Empty ;
         private string __HPHM=string.Empty ;
         private string __FS_BUF=string.Empty ;
         private string __JS_BUF=string.Empty ;
         private int? __SFCG=null ;
         private string __JCRQ=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public WebLog()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("JCLSH",false);
             this.__Changed.Add("JCXH",false);
             this.__Changed.Add("JCGWH",false);
             this.__Changed.Add("LogName",false);
             this.__Changed.Add("JYXM",false);
             this.__Changed.Add("AJLSH",false);
             this.__Changed.Add("HPHM",false);
             this.__Changed.Add("FS_BUF",false);
             this.__Changed.Add("JS_BUF",false);
             this.__Changed.Add("SFCG",false);
             this.__Changed.Add("JCRQ",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__JCLSH =string.Empty;
             this.__JCXH =string.Empty;
             this.__JCGWH =string.Empty;
             this.__LogName =string.Empty;
             this.__JYXM =string.Empty;
             this.__AJLSH =string.Empty;
             this.__HPHM =string.Empty;
             this.__FS_BUF =string.Empty;
             this.__JS_BUF =string.Empty;
             this.__SFCG =null;
             this.__JCRQ =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["JCLSH"] = false;
             this.__Changed["JCXH"] = false;
             this.__Changed["JCGWH"] = false;
             this.__Changed["LogName"] = false;
             this.__Changed["JYXM"] = false;
             this.__Changed["AJLSH"] = false;
             this.__Changed["HPHM"] = false;
             this.__Changed["FS_BUF"] = false;
             this.__Changed["JS_BUF"] = false;
             this.__Changed["SFCG"] = false;
             this.__Changed["JCRQ"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[JCLSH]的数据
         /// </summary>
         public string JCLSH
         {
              set{ __JCLSH = value.Replace("'","’"); __Changed["JCLSH"] = true;}
              get{return __JCLSH;}
         }
         /// <summary>
         ///设置或获取类中的[JCXH]的数据
         /// </summary>
         public string JCXH
         {
              set{ __JCXH = value.Replace("'","’"); __Changed["JCXH"] = true;}
              get{return __JCXH;}
         }
         /// <summary>
         ///设置或获取类中的[JCGWH]的数据
         /// </summary>
         public string JCGWH
         {
              set{ __JCGWH = value.Replace("'","’"); __Changed["JCGWH"] = true;}
              get{return __JCGWH;}
         }
         /// <summary>
         ///设置或获取类中的[LogName]的数据
         /// </summary>
         public string LogName
         {
              set{ __LogName = value.Replace("'","’"); __Changed["LogName"] = true;}
              get{return __LogName;}
         }
         /// <summary>
         ///设置或获取类中的[JYXM]的数据
         /// </summary>
         public string JYXM
         {
              set{ __JYXM = value.Replace("'","’"); __Changed["JYXM"] = true;}
              get{return __JYXM;}
         }
         /// <summary>
         ///设置或获取类中的[AJLSH]的数据
         /// </summary>
         public string AJLSH
         {
              set{ __AJLSH = value.Replace("'","’"); __Changed["AJLSH"] = true;}
              get{return __AJLSH;}
         }
         /// <summary>
         ///设置或获取类中的[HPHM]的数据
         /// </summary>
         public string HPHM
         {
              set{ __HPHM = value.Replace("'","’"); __Changed["HPHM"] = true;}
              get{return __HPHM;}
         }
         /// <summary>
         ///设置或获取类中的[FS_BUF]的数据
         /// </summary>
         public string FS_BUF
         {
              set{ __FS_BUF = value.Replace("'","’"); __Changed["FS_BUF"] = true;}
              get{return __FS_BUF;}
         }
         /// <summary>
         ///设置或获取类中的[JS_BUF]的数据
         /// </summary>
         public string JS_BUF
         {
              set{ __JS_BUF = value.Replace("'","’"); __Changed["JS_BUF"] = true;}
              get{return __JS_BUF;}
         }
         /// <summary>
         ///设置或获取类中的[SFCG]的数据
         /// </summary>
         public int? SFCG
         {
              set{ __SFCG = value; __Changed["SFCG"] = true;}
              get{return __SFCG;}
         }
         /// <summary>
         ///设置或获取类中的[JCRQ]的数据
         /// </summary>
         public string JCRQ
         {
              set{ __JCRQ = value.Replace("'","’"); __Changed["JCRQ"] = true;}
              get{return __JCRQ;}
         }
    }
}
